package org.garbagecan.quartzstudy;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

public class MyJob implements Job {

	private Log log = LogFactory.getLog(MyJob.class);

	public void execute(JobExecutionContext arg0) throws JobExecutionException {
		log.info("Start Job Time: " + TestUtil.getDateTime());
//		try {
//			Thread.sleep(5000);
//		} catch (InterruptedException e) {
//			e.printStackTrace();
//		}
		log.info("End Job Time  : " + TestUtil.getDateTime());
	}
}
